//
//  UITextField+inputAccessry.h
//

#import <UIKit/UIKit.h>
#import <objc/runtime.h>

#pragma clang diagnostic push

#pragma clang diagnostic ignored "-Wstrict-prototypes"
typedef void(^TextFieldDidChange)();
typedef void(^TextViewDidEndEditing)();

#pragma clang diagnostic pop

NS_ASSUME_NONNULL_BEGIN

@interface UITextField (inputAccessry)

@property (strong, nonatomic) UIView * pointView;

@property (strong, nonatomic) UIView * contentOffsetView;

@property (strong, nonatomic) NSNumber * initialPosition;

@property (assign, nonatomic) NSNumber * maxLength;

@property (strong, nonatomic) IBInspectable NSString *attrPlaceholder;

@property (copy, nonatomic) TextFieldDidChange textFieldDidChange;
@property (copy, nonatomic) TextViewDidEndEditing textViewDidEndEdit;


- (void)setShowCustomInputAccessry:(BOOL)showCustomInputAccessry;

- (void)addObserverKeyboard:(UIView *)pointView contentOffsetView:(UIView *)contentOffsetView;

- (void)removeObserver;

- (void)addObserverTextFieldDidChange;

@end

NS_ASSUME_NONNULL_END
